package com.yyi.springcloud.service.impl;


import com.yyi.springcloud.dao.UserDao;
import com.yyi.springcloud.entities.User;
import com.yyi.springcloud.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
	@Resource
    UserDao userDao;

	@Override
	public User selectUserByUserName(String userName) {
		return userDao.selectUserByUserName(userName);
	}

	@Override
	public List<User> selectAllUser() {
		return userDao.selectAllUser();
	}


}
